import { BASE_URL } from './routes'

// const baseUrl = typeof window !== 'underfined' ? window.location.protocol + "//" + window.location.host : '';
const baseUrl = 'http://172.24.132.76:3002/'
// const baseUrl = 'http://172.24.141.238:3002/'

const CONFIG = {
    URLS: {
        LOGOUT_URL: process.env.REACT_APP_PORTAL_LOGOUT_URL
    },
    APIS: {
        LOGOUT: baseUrl + 'logout',
        USER_INFO: baseUrl + 'test/test',
        GET_BUSI_DIST_LIST: baseUrl + 'getBusiDistList', // 商圈列表
        POST_BUSI_DIST_DETAIL: baseUrl + 'postBusiDistDetail', // 商圈详情
        ADD_BUSI_DIST: baseUrl + 'addBusiDist', // 商圈新增
        DELETE_BUSI_DIST: baseUrl + 'deleteBusiDist', // 商圈删除
        UPDATE_BUSI_DIST: baseUrl + 'updateBusiDist', // 商圈修改
        FILE_UPLOAD: baseUrl + 'fileUpload', // 文件上传
        DOWNLOAD: baseUrl + 'download', // 获取图片
    },
    STATUS_CODE: {
        SUCCESS: '00',
        SERVER_ERROR: '00500'
    }

}
export default CONFIG;